﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __6591951F_C5AA_475f_AFDE_0E5350DF0B2F__
#define __6591951F_C5AA_475f_AFDE_0E5350DF0B2F__

#include "../tools/head.h"

namespace xos_log
{
	class log_level;

    class log_module : public xos_stl::mem_item< log_module, thread_lock >
    {
    public:
        typedef log_module T;

    public:
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        // 
        static int get_addr( POOL *** pppPool, LIST *** pppList );

    public:
        log_module();
        ~log_module();

    public:
		typedef xos_stl::xos_list< log_level > LEVEL_LIST;
		typedef LEVEL_LIST::iterator LEVEL_ITER;
		LEVEL_LIST * level_list_ptr;
        char m_szName[1024];

    public:
        log_level * find_log_level( int nLogLevel );
        int release();
        int init();
        int term();
    };

} // xos_log

#endif // __6591951F_C5AA_475f_AFDE_0E5350DF0B2F__
